package com.sen.design.principle.dependenceinversion;

public class LiSen {
    private String name;
    private ICourse iCourse;

    public LiSen() {
    }

    public LiSen(String name) {
        this.name = name;
    }

    public void studyCourse(ICourse iCourse){
        iCourse.studyCourse(name);
    }

    public void studyCourse(){
        this.iCourse.studyCourse(name);
    }

    public void setiCourse(ICourse iCourse) {
        this.iCourse = iCourse;
    }
}
